<html>

<head>
    <meta charset="utf-8" />
    <title>jquery版本轮播图</title>
    <script src="../node_modules/jquery/dist/jquery.js"></script>
    <!--overflow属性规定当内容溢出元素框的时候发生的事情
        值有visible   默认值，内容不会被裁剪，会在元素框之外呈现
           hidden    内容会被裁剪，并且其余内容是不可见的
           scroll    内容会被修剪，但是浏览器会显示滚动条可以查看其余的内容
           auto      如果内容被修剪，则浏览器会显示滚动条以便查看其它内容
           inherit   规定应该从父元素继承overflow属性的值
    -->
    <style>
        .container {
            margin: 20px auto;
            width: 510px;
            height: 200px;
            overflow: hidden;
            position: absolute;
        }
        
        .inner {
            position: relative;
            width: 510px;
            left: 0;
            top: 0;
        }
        
        .innerwraper {
            display: inline;
            position: relative;
            left: 0px;
            top: 0px;
        }
        
        .clearfix {
            *zoom: 1;
        }
        
        .clearfix:after {
            display: block;
            clear: both;
            visibility: hidden;
            content: "";
            height: 0;
        }
        
        a {
            text-decoration: none;
        }
        
        .left-arrow {
            position: absolute;
            left: 0;
            top: 40%;
            width: 10%;
            height: 20px;
            text-align: center;
            line-height: 20px;
            font-size: 20px;
        }
        
        .right-arrow {
            position: absolute;
            right: 0;
            top: 40%;
            width: 10%;
            height: 20px;
            font-size: 20px;
            text-align: center;
            line-height: 20px;
        }
        
        .pageAnimation {
            position: absolute;
            bottom: 10px;
            width: 100%;
            text-align: center;
        }
        
        .pageAnimation span {
            display: inline-block;
            width: 30px;
            height: 30px;
            background-color: yellow;
            line-height: 30px;
            border-radius: 50%;
            cursor: pointer;
        }
        
        .pageAnimation .active {
            background-color: red;
            color: #FFFFFF;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="inner"></div>
        <div class="innerwraper"><img src="../resource/abc.png" alt=""></div>
        <div class="innerwraper"><img src="../resource/C01_MainUI_bg.jpg" alt=""></div>
        <div class="innerwraper"><img src="../resource/abc.png" alt=""></div>
        <div class="innerwraper"><img src="../resource/C01_MainUI_bg.jpg" alt=""></div>
    </div>
    <div class="pageAnimation">
        <span class="active">1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
    </div>
    </div>
</body>

</html>